﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace NotificationServer
{
    public class Program
    {
        static void Main(string[] args)
        {
            ServiceHost svh = new ServiceHost(typeof(NotificationService.NotificationServiceImplemented));
            svh.AddServiceEndpoint(
                typeof(NotificationService.INotificationService), 
                new NetTcpBinding(), 
                "net.tcp://localhost:");
            
            svh.Open();
            Console.WriteLine("NotificationServer online!");
            Console.ReadLine();
            svh.Close();
        }
    }
}
